#!/usr/bin/env python3
import random
import string

def checkParam(para, required:dict):
    for p in required.keys():
        if p not in para:
            return 'no {} in params'.format(p)
    return ''

def write2file(path, content):
    with open(path, 'wb') as f:
        f.write(content)



def getfakeModelStr():
    return ''.join(random.sample((string.ascii_letters + string.digits)*2, 64))

